<template>
  <div>这是Home啊</div>
</template>

<script lang="ts" setup>
import { storeToRefs } from "pinia";
import { getMapBasemapList } from "@/api/index";
import { usePopStore } from "@/store/index";
import { ref } from "vue";

// 获取指定的paina中存储的变量
const { popName } = storeToRefs(usePopStore());

// 获取对应的方法
const { setPopName } = usePopStore();

const nameValue = ref("");

function setPopNameFun() {
  // 调用方法
  setPopName(nameValue.value);
  getMapBasemapList();
}
</script>
<style lang="postcss" scoped>
.flex {
  color: #ffffff;
}
.box {
  position: relative;
  width: 1000px;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    80% 100%,
    75% 75%,
    25% 75%,
    20% 100%,
    0% 100%
  );
  .content {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: red;
    left: 50%;
    bottom: 0vmax;
  }
}
.comm-pop-container {
  position: absolute;
  left: 50%;
  top: 50%;
}
</style>
